package org.dizem.freepl0.gui.panel;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: DIZEM
 * Date: 11-2-2
 * Time: 下午5:49
 */
public class OutputPanel extends JPanel {
	private static final Font FONT = new java.awt.Font("微软雅黑", Font.PLAIN, 12);
	private JTextArea textArea = new JTextArea();
	public OutputPanel() {
		init();
	}

	public void clearText() {
		textArea.setText("");
	}
	
	public void appendText(String text) {
		textArea.append(text);
	}

	private void init() {
		setLayout(new BorderLayout());
		add(textArea, BorderLayout.CENTER);
		textArea.setEditable(false);
		textArea.setFont(FONT);
	}
}
